package com.liugai.lgeachday.mapper;

import com.liugai.lgeachday.entity.User;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

public interface UserMapper extends Mapper<User> {

    @Update("update user set headurl='${headUrl}' where id=${id}")
    public int updateUserHead(String headUrl, long id);

    /**
     * 根据课程id查询课程下得分的学生
     * @param courseId
     * @return
     */
//    @Select("SELECT c.id,c.integral,c.`name`,c.remarks,c.stu_number,c.topic_id,c.topic_time FROM topic_list a,topic_question b,integral c WHERE a.Id=b.topic_id AND b.Id=c.topic_id AND a.course_id=#{courseId}")
//    List<Integral> queryBrandByCid(@Param("courseId") String courseId);


}